const BaseHandler     = require('../base-handler');
const HTTP_VERBS      = require('../../../constants').HTTP_VERBS;

class WeChatErrorReportHandler extends BaseHandler {

    get pattern() {
        return "/wechat/report_error";
    }

    doALL(request, response) {
        console.log(request.body);
        console.log(request.params);
        console.log(request.query);
        response.end('OK');
    }

    setup() {
        this.registerVerb(HTTP_VERBS.ALL, this.doALL);
    }
}

module.exports = WeChatErrorReportHandler;